package ch.fusun.baron.turn;

import ch.fusun.baron.core.rmi.User;
import ch.fusun.baron.data.DataProvider;

/**
 * The user turn service (turns per user)
 */
public interface UserTurnService extends DataProvider {

	/**
	 * @param user
	 *            The user
	 * @param points
	 *            the added points
	 */
	void increaseTurnPoints(User user, int points);

	/**
	 * @param user
	 *            The user
	 * @param points
	 *            The points
	 */
	void setPoints(User user, int points);

	/**
	 * @param user
	 *            The user
	 * @return The points of the user
	 */
	int getTurnPoints(User user);

	/**
	 * @param user
	 *            The user
	 * @param turnCost
	 *            The points to subtract
	 */
	void decreaseTurnPoints(User user, int turnCost);

}
